package com.zhang.activity;

import com.zhang.activity.FlyDialog.OnFlyDialogListener;
import com.zhang.little_sample.R;

import android.R.integer;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class ExpenseDetailActivity extends Activity implements OnClickListener {
	private Button btnLiJiXiaDan;
	private int msg=2;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_expensedetail);
		btnLiJiXiaDan = (Button) findViewById(R.id.btn_expensedetail_LiJiXiaDan);
		btnLiJiXiaDan.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_expensedetail_LiJiXiaDan:
			showDialog();
			break;

		default:
			break;
		}
	}

	private void showDialog() {
		FlyDialog dialog = new FlyDialog(ExpenseDetailActivity.this,
				new OnFlyDialogListener() {

					@Override
					public void back(int resultTag) {
						// TODO Auto-generated method stub
						msg = resultTag;
					}
				});
		dialog.show();
	}

}
